package cn.zhuama.org.mapper;

import cn.zhuama.basic.mapper.BaseMapper;
import cn.zhuama.basic.util.PageList;
import cn.zhuama.org.domain.Employee;
import cn.zhuama.org.query.EmployeeQuery;
import cn.zhuama.system.domain.Menu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    void saveRegis(Employee admin);

    void saveEmploymRole(@Param("employId") Long employId, @Param("roleId") Long roleId);

    void delEmploymRole(Long id);

    List<String> loadPerssionSnByLogininfoId(Long id);

    List<Menu> loadMenuSnByLogininfoId(Long id);
}
